package com.redwood.report.adapter.bak;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.redwood.report.R;
import com.redwood.report.entity.bak.demo.Caption;

/**
 * Created by Supeng on 2018/8/23.
 */
//Caption been
public class DemoMainAdapter extends BaseQuickAdapter<Caption, BaseViewHolder> {

    public DemoMainAdapter() {
        //item layout
        super(R.layout.layout_demo_item);
    }
    //设置控件数据
    @Override
    protected void convert(final BaseViewHolder helper, Caption item) {
        helper.setText(R.id.tv_context, item.getTitle());
    }
}
